
	<?php 
	$day = $_GET['d'];
	$month = $_GET['m'];
	$year = $_GET['y'];
	
	$eventsList = $base->pobierzTabliceWynikow("select * from events where Date='".$year."-".$month."-".$day."';");
	echo "<h3>EVENTY NA DZIEŃ ".$day." ".getMonthName($month)." ".$year."</h3>"
	
	echo "<ul>";
	foreach ($eventsList as $event){
		echo "<li><span class=\"event\" onclick=\"editEvent('".$event["ID"]."', '".$event["DESCRIPTION"]."');\">".$event["DESCRIPTION"]."</span></li>";
	}
	
	?>
</ul>

<span class="link" onclick="addEvent(<?php echo $day.", ".$month.", ".$year;?>)">+ Dodaj Nowy Event</span>